/**
 * 
 */
package com.cqcis.uip.module.salary.oper.dao;

import java.util.List;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

import com.cqcis.uip.base.framework.utils.JdbcUtil;
import com.cqcis.uip.module.salary.oper.domain.ContractMan;

/**
 * @author 李世军
 *
 * 创建于 2012-3-7 下午08:44:46
 */
public class ContractManDao extends JdbcDaoSupport {
	private static String FIELDS = " id ,training_contract_id,employe_id, ratio  ";
	private static String SELECT_SQL = " select "+FIELDS+" from customercontrol_trainingcontractmans where employe_id=? ";
	
	/**
	 * 查询员工所有提成比例
	 * @param employeId
	 * @return
	 */
    public List<ContractMan> find(String employeId) {
    	return JdbcUtil.queryForList(this, ContractMan.class, SELECT_SQL,employeId);
    }
}
